package sms.service;

import java.util.List;
import java.util.Optional;

import sms.model.Student;

/**
 * author: heyin
 * date: 2018-10-31
 * desc:
 */
public interface StudentService {

    List<Student> list() throws ServiceException, ClassNotFoundException;

    Optional<Student> getStudent(String id) throws ServiceException;

    void addStudent(Student student) throws ServiceException;

    void updateStudent(Student student) throws ServiceException;

    void deleteStudent(Student student) throws ServiceException;
}
